﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>齐重数控官方网站</title>
<meta http-equiv="keywords" content="齐重数控,视频中心"></meta>
<meta http-equiv="description" content="齐重数控官方网站"></meta>
<link href="<%=request.getContextPath()%>/qzsk/css/qzsq.css"
	rel="stylesheet"></link>
<link href="<%=request.getContextPath()%>/qzsk/css/style.css"
	rel="stylesheet"></link>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/qzsk/css/main.css"></link>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/qzsk/css/fix.css"></link>
<link href="<%=request.getContextPath()%>/resources/outeam/style.css"
	rel="stylesheet" type="text/css" media="all" />
<script src="<%=request.getContextPath()%>/qzsk/js/jquery.img_silder.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/resources/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/qzsk/js/clientlib-vendor.js"></script>
<style>
img:HOVER {
	border: 1px soild orange;
}
</style>
</head>
<body>
	<jsp:include page="top.jsp"></jsp:include>
	<div class="n_cont">
<center>
		<div class="wrap fix">
			<div class="l side">
				<dl class="side_menu">
					<dt class="Tit2">${pc.name}</dt>
					<c:forEach var="c" items="${cs}">
						<dd id="left101001" class="open">
							<a href="${c.id }.do"> <c:choose>
									<c:when
										test="${c.name==channel.name ||c.name==channel.parent.name}">
										<span style="color: red">${c.name }</span>
									</c:when>
									<c:otherwise> ${c.name }</c:otherwise>
								</c:choose>
							</a>
						</dd>
					</c:forEach>
				</dl>
			</div>
			<div class="r main dhe">
				<h2 class="Tit2"></h2>
				<div class="posi">
					<div class="layer">
						<table>
							<tr>
								<td>当前您的位置:&nbsp; &nbsp; &nbsp; <a
									href="<%=request.getContextPath()%>/index.do">首页</a></td>
								<td>| <a
									href="<%=request.getContextPath()%>/channel/${pc.id}.do">${pc.name
							}</a></td>
								<td>| <span style="color: purple">${channel.name } </span></td>
								<td>| <span><a style="color: red"
										href="javascript:history.go(-1);">返回</a></span></td>
							</tr>
						</table>
					</div>
				</div>
				<div class="r main">
					<ul class="bor1 dl_head_tab fix">
						<c:forEach items="${cc }" var="cc">
							<li><a href="<%=request.getContextPath()%>/channel/${cc.id}.do">
									<c:choose>
										<c:when test="${channel.name==cc.name}">
											<span style="color: orange">${cc.name }</span>
										</c:when>
										<c:otherwise> ${cc.name }</c:otherwise>
									</c:choose>
							</a></li>
						</c:forEach>
					</ul>
					<c:choose>
						<c:when test="${!empty encryption}">
							<span>此内容加密，请输入访问密码:</span>
							<div class="visit-form-box">
								<form
									action="<%=request.getContextPath() %>/channel/${channel.id }.do"
									method="post">
									<input type="password" name="visitPassword" id="visit-password"
										placeholder="请输入密码" /> <input class="visit-button"
										type="submit" value="提交" />
								</form>
								<c:if test="${!empty visitError}">
									<span class="visitError-font">${visitError}</span>
								</c:if>
							</div>
						</c:when>
						<c:otherwise>
							<ul class="oh video_list mt20" id="pagecontent">
								<c:forEach items="${video.datas }" var="v">
									<c:choose>
										<c:when test="${!empty v.videoImg}">
											<li class="imghover"><a
												href="<%=request.getContextPath()%>/showVideo/${v.id}.do"
												title="${v.attName }"> <img
													src="<%=request.getContextPath()%>/resources/upload/${v.videoImg.newName }"
													alt="${v.attName }" width="178" height="200"></img></a>
												<div limit='22' style='text-align: center;'>${v.attName }</div></li>

										</c:when>
										<c:otherwise>
											<li class="imghover"><a
												href="<%=request.getContextPath()%>/showVideo/${v.id}.do"
												title="${v.attName }"> <img src="" alt="${v.attName }"
													width="178" height="200"></img></a>
												<div limit='22' style='text-align: center;'>${v.attName }</div></li>
										</c:otherwise>
									</c:choose>
								</c:forEach>
							</ul>
						</c:otherwise>
					</c:choose>
					<div class="page mt20">
						<span class="goprev"> <jsp:include
								page="/jsp/index_pager.jsp">
								<jsp:param value="${video.total }" name="totalRecord" />
								<jsp:param value="" name="url" />
							</jsp:include>
						</span>
					</div>
				</div>
			</div>
		</div></center>
	</div>
	<center><jsp:include page="foot.jsp"></jsp:include></center>
</body>
</html>